<?php

class app_model extends model {
  function access($field) {
    if (isset($field['access']) && $field['access'] == 'private') {
      if (isset($_SESSION['user']) && $_SESSION['user']->url == $this->url) {
        return TRUE;
      }
    }
    else {
      return TRUE;
    }
    return FALSE;
  }
}
